<html>
    <head>
        <title>Sleepy Traveler</title>
		<meta name="layout" content="main" />
    </head>
    <body>
        <div align="center">
            
            <h1 style="margin-left:20px;">Welcome to the Sleepy Traveler Reservation System</h1>

            <p/><br/> 
            
            <div align="center">
                <p style="margin-left:20px;width:80%">Please login to manage your account:</p>
            </div>

            <g:if test="${params.login_error == '1'}" >
                <div class="errors"  style="width:250px;" align="left">
                    <ul>
                        <li>Invalid Username/Password</li>
                    </ul>
                </div>
            </g:if>
            <g:elseif test="${params.login_error == '2'}" >
                <div class="errors"  style="width:250px;" align="left">
                    <ul>
                        <li>You are not authorized to access that resource</li>
                    </ul>
                </div>
            </g:elseif>
            <g:else>
                <p/><br/>
            </g:else>
            
            <div style="width:250px;border:1px solid blue;background:lightblue" align="center" >
            <form action="j_acegi_security_check" method="POST" id="loginForm">
            <table>
                <tr>
                    <td>UserID:</td> <td><input type="text" name="j_username"></td>
                </tr>
                <tr>
                    <td>Password:</td> <td><input type="password" name="j_password"></td>
                </tr>
                <tr>
                    <td>&nbsp;</td><td><input type="submit" value="Logon"></td>
                </tr>
            </table>
            </form>
            </div>
        </div>
    </body>
</html>